#pragma once


#include "CoreMinimal.h"
#include "Widgets/SCompoundWidget.h"
#include "SInputGroupList.h"
#include "SConfigureDetailsView.h"



class SConfigureWindow : public SCompoundWidget
{

public:
	SLATE_BEGIN_ARGS(SConfigureWindow)
	{}
	SLATE_END_ARGS()


public:
	void Construct(const FArguments& InArgs);

private:

	TSharedPtr<SInputGroupList> InputGroupList;
	TSharedPtr<SConfigureDetailsView> ConfigureDetailsView;

	void UpdateDetailsView(FString GroupKey);
	FReply AddNewGroup();
	FReply DeleteThisGroup();
	FReply CopyThisGroup();
	FReply SaveThisGroup();
	FReply CreateExampleInputGourp();
	void RenameThisGroup(FString NewGroupKey);
	void ChangeAutoSave(ECheckBoxState NewAutoSave);
	void SetDefaultLoad(ECheckBoxState NewDefaultLoad);

	TSharedPtr<SEditableText> GroupKeyEditableText;
	TSharedPtr<SCheckBox> DefaultLoadCheckBox;
	void GroupKeyEditableTextCommitted(const FText& InText, const ETextCommit::Type InTextAction);

};